#ifndef HANDTOPBTN_H
#define HANDTOPBTN_H

#include <QWidget>

//手动界面按钮
namespace Ui {
class HandTopBtn;
}

class HandTopBtn : public QWidget
{
    Q_OBJECT

public:
    explicit HandTopBtn(QWidget *parent = nullptr);
    ~HandTopBtn();

    void setPicName(QString picStyle,QString name);
    void setIndex(int index);
    int getIndex();
    void setNormalStyle();
    void setClickedStyle();

signals:
    void sigClicked(QString name);

protected:
    bool eventFilter(QObject *watched, QEvent *event);

private:
    Ui::HandTopBtn *ui;
    int m_index;
    QString m_TextName;
};

#endif // HANDTOPBTN_H
